	
/****** Object:  Stored Procedure ResponsiblesInsert    Script Date: Monday, November 26, 2007 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spResponsiblesInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [spResponsiblesInsert]
GO

	
	

/******************************************************************************
**		File: 
**		Name: spResponsiblesInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 11/26/2007 11:45:46 AM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE spResponsiblesInsert
	@Name nvarchar(100),
	@ConpointID int,
	@ResponsibleID int output
AS

INSERT INTO [Responsibles] 
(
	[Name],
	[ConpointID]
) 
VALUES 
(
	@Name,
	@ConpointID
)

SELECT @ResponsibleID = @@IDENTITY

GO
	
